

import {SET_VISIBILITY, SHOW_ALL} from "../constants/todoConstant";

const visibilityFilter = (state = SHOW_ALL, action) => {
    switch (action.type){
        case SET_VISIBILITY:
            return action.filter;
        default:
            return state;
    }
};

export default visibilityFilter;